package nige.d3.core;

import static org.lwjgl.opengl.GL11.GL_LINES;
import static org.lwjgl.opengl.GL11.GL_TRIANGLES;
import static org.lwjgl.opengl.GL11.glBegin;
import static org.lwjgl.opengl.GL11.glEnd;
import static org.lwjgl.opengl.GL11.glVertex3f;

public class Drawing {
	
	public static void notMoving() {
		glBegin(GL_TRIANGLES);
			glVertex3f(-0.39f, 0f, -1f);
			glVertex3f(-0.41f, 0f, -1f);
			glVertex3f(-0.41f, 0.1f, -1f);
		glEnd();
	}

	public static void map() {
		float size = 0.01f;
		for(int i=-10;i<10;i++) {
			for(int j=-10;j<10;j++) {
				glBegin(GL_LINES);
					glVertex3f(
							0f+i*size,
							-0.005f,
							-0.01f+size*j);
					glVertex3f(size+i*size,
							-0.005f,
							-0.01f+size*j);
					glVertex3f(0f+i*size,
							-0.005f,
							-0.01f+size*j);
					glVertex3f(0f+i*size,
							-0.005f,
							-0.01f+size+size*j);
				glEnd();
			}
		}
	}
	
}
